package com.topchain.common;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2023/5/17 13:05
 */
public enum ResponseCodeEnum {
    SUCCESS(200, "操作成功"),
    SYSTEM_EXCEPTION(500, "系统内部异常"),

    IP_EXCEPTION(1001, "IP地址不合法"),
    MAC_EXCEPTION(1002, "Mac地址不合法"),
    START_TIME_EXCEPTION(1003, "licence有效期的截至时间必须大于起始时间"),
    RENEWAL_EXCEPTION(1004, "续期天数不合法"), 
    DOWNLOAD_LICENCE_EXCEPTION(1005, "下载licence文件失败.");

    private final int code;
    private final String message;

    ResponseCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
